package com.hexb.smh.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author : hexb
 */
@Data
public class ProductBase {
    private Integer id;

    @ApiModelProperty("项目名称")
    private String name;

    @ApiModelProperty("项目编码,全系统唯一")
    private String itemNo;

    @ApiModelProperty("项目简码")
    private String briefCode;

    @ApiModelProperty("描述,业务员可见")
    private String description;

    @ApiModelProperty("备注,仅管理员可见")
    private String remarks;

    @ApiModelProperty("是否上架中(上架中的项目才可以被加入到套餐中)")
    private Boolean activated;

    @ApiModelProperty("创建时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;


    @ApiModelProperty("最后一次修改时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date updateTime;

    @ApiModelProperty("创建人")
    private Integer createBy;

    @ApiModelProperty("最后一次修改人")
    private Integer updateBy;

    @ApiModelProperty("项目分类")
    private String category;
}
